<%@ page language="java" contentType="text/html; charset=utf-8"%>
<%@ include file="/commons/taglibs.jsp"%>
<%@ include file="/commons/commonList.jsp" %>
<html>
<head>
<script language="JavaScript"  src="${ctx}/scripts/common/prototype.js"></script>
<script type="text/javascript">
 	function resize(){
		parent.window.document.all('manageOrgList').style.height=document.body.scrollHeight;
	}

	//当改点选表格行数据时，触发本事件
	function changeID(id){
		$('manageOrgId').value=id;
	}

	function freshFrame(){
		document.forms.ec.ec_p.value=document.getElementById("ec_p").value;
		document.forms.ec.submit();
	}
</script>

</head>
<body onload="resize()">
<input type="hidden" name="manageOrgId" value="" />
<ec:ceTable items="manageOrgList"
	action="${ctx}/house_manageOrgAction.do?method=initManageOrgList"
	var="manageOrgItem"
	view="pmsview"
	styleClass="gridData2"
	rowsDisplayed="15" >
	<ec:ceRow styleClass="grid"
	 onclick="changeID(${manageOrgItem.keyword})" onContextMenu="return ShowContextMenu(event,'quick_rightmenu')" >
		<ec:ceColumn headerCell="pmsHeadrCell" title="${key.name}" property="name"  width="12%" styleClass="align_left" />
		<ec:ceColumn headerCell="pmsHeadrCell" title="${key.principal}" property="principal" width="8%" styleClass="align_left"/>
		<ec:ceColumn headerCell="pmsHeadrCell" title="${key.establishDate}" property="establishDate" width="12%" styleClass="align_left"/>
		<ec:ceColumn headerCell="pmsHeadrCell" title="${key.acreage}(㎡)" property="acreage"  width="12%" styleClass="align_left"/>
		<ec:ceColumn headerCell="pmsHeadrCell" title="${key.address}" property="address"  width="12%" styleClass="align_left"/>
		<ec:ceColumn headerCell="pmsHeadrCell" title="${key.telephone}" property="telephone" width="11%" styleClass="align_left"/>
	</ec:ceRow>
	<ec:parameter name="companyId" value="${companyId}"></ec:parameter>
</ec:ceTable>

    <!--------------------右键显示 新增更多菜单 开始---------------------->
<div id="quick_rightmenu" style="display:none;"
	oncontextmenu="return false" class="quick_rightmenu">
<table width="100%" border="0" cellpadding="0" cellspacing="0"
	class="grid_quickMenu_bg">
	<tr>

		<td>
		<table width="100%" border="0" cellpadding="2" cellspacing="0">
			<tr>
				<td class="quickMenu_toolbarico"><a href="#"
					onClick="parent.parent.openNewManageOrg();" onFocus="this.blur()"><img
					src="${ctx}/images/ico_newfile.gif" border="0" align="absbottom"
					alt="${key.addManageOrg}" />&nbsp;${key.addManageOrg}</a></td>
			</tr>

			<tr>
				<td class="quickMenu_toolbarico"><a href="#"
					onFocus="this.blur()" onClick="parent.openEditManageOrg();"><img
					src="${ctx}/images/ico_amend.gif" alt="" width="16" height="16"
					border="0" align="absbottom" alt="${key.modifyManageOrg}"/> ${key.modifyManageOrg}</a></td>
			</tr>

			<tr>
				<td class="quickMenu_toolbarico"><a href="#"
					onClick="parent.showDelete();" onFocus="this.blur()"><img
					src="${ctx}/images/ico_delete.gif" alt="" width="16" height="16"
					border="0" align="absbottom" alt="${key.delete}"/> ${key.delete}</a></td>
			</tr>

		</table>
		</td>
	</tr>
</table>
</div>

</body>
</html>